package com.techsoul.module.pms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.module.basic.pojo.param.SuspiciousItemSaveParam;
import com.techsoul.module.basic.pojo.vo.CustomerVo;
import com.techsoul.module.order.pojo.entity.SalesOrder;
import com.techsoul.module.order.pojo.entity.SalesOrderItem;
import com.techsoul.module.order.pojo.vo.SalesOrderItemVo;
import com.techsoul.module.pms.pojo.entity.TbWmsMaterialDelivery;
import com.techsoul.module.pms.pojo.entity.TbWmsMaterialDeliveryLine;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialDeliveryLineSaveParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialDeliveryLineSearchParam;
import com.techsoul.module.pms.pojo.param.TbWmsMaterialReceiptLineSaveParam;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialDeliveryLineVo;
import com.techsoul.module.pms.pojo.vo.TbWmsMaterialDeliveryLineptVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 出库明细 Service接口
 * 
 * @author liuen
 * @date 2022-01-25
 */
public interface ITbWmsMaterialDeliveryLineService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(TbWmsMaterialDeliveryLineSaveParam params);
    TbWmsMaterialDelivery importData(TbWmsMaterialDeliveryLineVo data, String needOrderYn, UserVo user, int itemNo, int line, TbWmsMaterialDelivery newSalesOrder) ;
    TbWmsMaterialDeliveryLineVo removeSpecialChar(TbWmsMaterialDeliveryLineVo input);
    void genOperationLog(TbWmsMaterialDeliveryLine data, UserVo user );
    void refreshDeliveryPlanHead(String status,String id);

    String calculateOutboundRate();
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(TbWmsMaterialDeliveryLineSaveParam params);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer outbound(TbWmsMaterialDeliveryLineSaveParam params);
    String autoWarehouseFetch(String locationNo,String rfids);
    /**
     * 详情
     * @param id
     * @return
     */
    TbWmsMaterialDeliveryLineVo findById(String id);
    String confirm(String id);
    /**
     * 列表
     * @param params
     * @return
     */
    List<TbWmsMaterialDeliveryLineVo> findAll(TbWmsMaterialDeliveryLineSearchParam params);
    String moveToSuspicious(TbWmsMaterialDeliveryLineSaveParam param);
    List<TbWmsMaterialDeliveryLine> findAllOrderByMaterial(TbWmsMaterialDeliveryLineSearchParam params);
    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TbWmsMaterialDeliveryLineVo> findAll(TbWmsMaterialDeliveryLineSearchParam params, Integer current, Integer pageSize);
    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<TbWmsMaterialDeliveryLineptVo> findAll1(TbWmsMaterialDeliveryLineSearchParam params, Integer current, Integer pageSize);

    String importData1(MultipartFile file);
}
